package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;

import java.util.List;

public interface MemberDao {
    //修改
    List<Member> findAll();

    //分页
    Page<Member> selectByCondition(String queryString);

    void deleteById(Integer id);

    //通过id查询
    Member findById(Integer id);

    void edit(Member member);

    //根据月份统计会员数量
    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();

    //手机快速登录界面 添加
    void add(Member member);

    //通过手机号码校验
    Member findByTelephone(String telephone);

}
